home *** CD-ROM | disk | FTP | other *** search
/ Megarom / Megarom Macintosh CD Software (Quantum Leap)(1992).iso / SOUND / Applications / Sound Input Device ƒ / HearHere.h < prev    next >
Text File  |  1990-01-09  |  3KB  |  74 lines

  1. /* **************** HearHere.h -- HearHere Definitions ***************** */
  2. /*                                                                       */
  3. /*                          Copyright (C) 1990                           */
  4. /*                             The SID Trio                              */
  5. /*                          All Rights Reserved                          */
  6. /*                                                                       */
  7. /*                                                                       */
  8. /* ********************************************************************* */
  9.  
  10.  
  11. /*****
  12.  *  Subroutine prototypes...
  13.  *
  14.  */
  15. Boolean HHInit(int);
  16. Boolean HHSample(int *);
  17. Boolean HHSampleRate(int);
  18. Boolean HHFrontWindow(int,int,int);
  19. Boolean HHRearWindow(int,int);
  20. Boolean HHRecord(unsigned char *,long,int,Boolean,long *);
  21. Boolean HHRecLow(unsigned char *,long,int,Boolean,long *);
  22. Boolean HHRecHigh(unsigned char *,long,int,Boolean,long *);
  23. Boolean HHRecToDiskHigh(unsigned char *,long,int,Boolean,long *);
  24. Boolean HHRecToDiskLow(unsigned char *,long,int,Boolean,long *);
  25. Boolean HHRAMPlay(unsigned char *,long);
  26. Boolean HHDiskPlay(int,unsigned char *,long);
  27. Boolean HHEnd(void);
  28. void HHDisableInts(void);
  29. void HHEnableInts(void);
  30. int HHError(); 
  31.  
  32.  
  33.  
  34. /*****
  35.  *  Port definitions for HHInit() subroutine
  36.  *
  37.  */
  38. #define MODEM_PORT        1
  39. #define PRINTER_PORT    2
  40.  
  41.  
  42.  
  43. /*****
  44.  *  Error codes...
  45.  *
  46.  */
  47. #define NO_ERROR        0
  48. #define INVALID_PORT    1        /* invalid port number in HHInit() */
  49. #define PORT_NOT_FREE    2        /* requested port asg'd to atalk or in use */
  50. #define UNKNOWN_STATE    3        /* HHInit() has not been called */
  51. #define INVALID_RATE    4        /* invalid sampling rate value */
  52. #define INVALID_FRONT    5        /* invalid front window */
  53. #define INVALID_REAR    6        /* invalid rear window */
  54. #define INVALID_BUFLEN    7        /* bufLen is too small for needed windows */
  55. #define NOT_RESPONDING    8        /* not receiving data from audio device */
  56. #define INTERRUPT        9        /* recvd a mouse intrpt while recording */
  57. #define MEMALLOC_ERROR    10        /* error allocating additional memory */
  58. #define DISKFAIL        11        /* error reading/writing sound data to disk */
  59. #define TIMEOUT            12        /* timeout while waiting for front window in record */
  60.  
  61.  
  62.  
  63.  
  64.  
  65. /* ********************************************************************* */
  66. /*                                                                       */
  67. /*                           End of HearHere.h                           */
  68. /*                                                                       */
  69. /* ********************************************************************* */
  70.  
  71.  
  72.  
  73.  
  74.